package model;

/**
 *
 * @author Robert EA
 */

public class Square{
    
    private int x;
    private int y;
    private int idSquare;
    private char color;     // L = light, D = Dark
    /**
     * tabIsOccupied has 5 states
     * 1 = Nothing on the square
     * 2 = P1's pawn
     * 3 = P1's queen
     * 4 = P2's pawn
     * 5 = P2's queen
     */
    private int isOccupied;
    public Square() {
        x = 0;
        y = 0;
        idSquare = 0;
        color = 'L';
        isOccupied = 0;
    }


    public int getX() {return x;}
    public void setX(int x) {this.x = x;}
    public int getY() {return y;}
    public void setY(int y) {this.y = y;}
    public int getIdSquare() {return idSquare;}
    public void setIdSquare(int idSquare) {this.idSquare = idSquare;}
    public char getColor() {return color;}
    public void setColor(char color) {this.color = color;}
    public int getIsOccupied() {return isOccupied;}
    public void setIsOccupied(int isOccupied) {this.isOccupied = isOccupied;}

}

